<!DOCTYPE html>
<html lang="en">
<head>
<style type="text/css">
body{
background-image:url('/myybj/img/loginbodyimg.jpg');<!--图片链接地址-->
background-repeat:no-repeat;  <!--图片不重复-->
background-position:center;<!--图片位置，默认居中，可另设-->

}
</style>

<!-- 用于在自己网站上标签显示小图标 ，目前在tomcat上测试可行，jetty不行 -->
<link rel="icon" href="/myybj/img/favicon.ico" type="image/x-icon" />  
<link rel="shortcut icon" href="/myybj/img/favicon.ico" type="image/x-icon" />
<title>${title!"登录"}</title>
<#include "style/lgStyle.html">

</head>
<body>
	<br>
	<br>
	<br>
	<div class="page-header text-info">
		<center>
			<h1>欢迎使用云笔记</h1>
		</center>
	</div>
	<div id="out" class="container" style="width: 100%; margin: 0 auto;">

		<div class="box ">

			<div class="div" style="margin: 0 auto; width: 500px;">
				<form class="form-horizontal" action="${contextPath}/login"
					method="post">
					<div class="control-group ">
						<label class="control-label" for="inputEmail">用户名</label>
						<div class="controls">
							<input type="text" class="span3" id="inputEmail"
								placeholder="请输入手机号码" name="username" value="${username!}" required>
						</div>
						<div class="controls">
							<#if errorName??> ${errorName!}</#if>
						</div>
						
					</div>

					<div class="control-group">
						<label class="control-label" for="inputPassword">密码</label>
						<div class="controls">
							<input type="password" id="inputPassword" placeholder="请输入密码"
								name="passwd" value="" required>
						</div>
						<div class="controls">
							<#if error??> ${error!} </#if>
						</div>
					</div>
					
					<div class="control-group">
						<label class="control-label" for="inputPassword">验证码</label>
						<div class="controls">
							<input type="text" id="captcha" name="captcha" placeholder="请输入验证码" value="" required>
						</div>
						<div class="controls">
							<#if errorCaptcha??> ${errorCaptcha!} </#if>
						</div>
						<br>
						<div class="controls">
							<img src="${contextPath}/captcha">
						</div>
					</div>


					<div class="control-group">
						<div class="controls">
							<!-- <label class="checkbox"> <input type="checkbox"
								name="remember" value="1"> 记住密码
							</label> -->
							<button type="submit" class="btn btn-primary">登录</button>
							<br>
						</div>
					</div>
				</form>
			</div>

			<center>
				<a href="${contextPath}/registerInLoign">没有账号？注册！</a>
			</center>
		</div>
	</div>
	<#include "copyright/footer.html">
</body>
</html>